package com.jiyun.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jiyun.login.dto.UpdatePasswordDto;
import com.jiyun.login.dto.UserInfoDto;
import com.jiyun.login.pojo.User;
import com.jiyun.login.vo.CosUploadVo;
import com.jiyun.login.vo.UserInfoVo;
import org.springframework.web.multipart.MultipartFile;

/**
* @author zqtao
* @description 针对表【users】的数据库操作Service
* @createDate 2025-02-12 10:00:19
*/
public interface UsersService extends IService<User> {

    String login(User user);

    User getInfo(Long loginId);

    CosUploadVo upload(MultipartFile file, String path);

    String getImageUrl(String path);

    String updateInfo(UserInfoDto userInfoDto, Long loginId);

    UserInfoVo findNickAvatar(Long loginId);


    String updatePassword(UpdatePasswordDto updatePasswordDto, Long loginId);

}
